<?php
/**
 * Comments module for XOOPS
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code 
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The Groups Project http://code.google.com/p/commentsforxoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         comments
 * @since           2.3.0
 * @author          Hui Xiao < xh.8326@gmail.com >
 * @version         $Id: form.comment.php Sat Jul 18 20:19:02 CST 2009
 */

if (false === defined("XOOPS_ROOT_PATH")) {exit();}
$form = new XoopsForm("", "comfrm", $formurl, "post",true);
//$form->addElement( new XoopsFormText(_CM_TITLE,"com_title",45,255),true);
$form->addElement( new XoopsFormTextArea(_CM_MESSAGE, "com_text", "", 8, 56),true);
$form->addElement( new XoopsFormHidden("com_itemid",$id));
$form->addElement( new XoopsFormHidden("com_module",$module));
$form->addElement( new XoopsFormHidden("op","comment"));
if ( !empty($isNew) ) {
    $form->addElement( new XoopsFormHidden("ac","create"));
} else {
    $form->addElement( new XoopsFormHidden("ac","edit"));
}
$form->addElement( new XoopsFormButton("","submit",_SUBMIT,"submit"));
$form->assign($xoopsTpl);